package cn.sangyy.user.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author SangYY
 * @date: 2023/06/02/13:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterInfoDto {
    @NotBlank(message = "手机号不能为空！")
    private String mobile;
    @NotBlank(message = "验证码不能为空！")
    private String phoneCode;
    @NotBlank(message = "用户名不能为空！")
    private String username;
    @NotBlank(message = "邮箱不能为空！")
    private String email;
    private Integer sex;
    private Integer age;
    @NotBlank(message = "密码不能为空！")
    private String password;
    @NotBlank(message = "确认密码不能为空！")
    private String confirmPassword;
}
